Skip to content

Snapshots V1 - #6640

Open
kim wants to merge 1 commit into
kim/reclamation-queuefrom
kim/snapshots-v1
Open

kim wants to merge 1 commit into
kim/reclamation-queuefrom
kim/snapshots-v1

Conversation

@kim

@kim kim commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

Introduces a new snapshot version 1. The manifest format is not changed, but the storage layout separates pages and blobs, like the tiered disk storage.

To support this, code needed to be moved around quite significantly, such that the manifest is always read before selecting the storage layout.

API and ABI breaking changes

N/A

Rollback safety impact

This patch adds support for the new storage layout, but does not enable it
(i.e. CURRENT_SNAPSHOT_VERSION remains the same). With this patch deployed,
both versions can be read.

Thus, this patch needs to be deployed, then on the next release we'd bump
CURRENT_SNAPSHOT_VERSION.

Expected complexity level and risk

2.6

Some rather surprisingly large code motion was required.

Testing

Added.

@kim
kim requested a review from joshua-spacetime November 19, 2026 15:41
@kim

kim commented Nov 19, 2026

Copy link
Copy Markdown
Contributor Author

NOTE: This sits at the top of my patch stack, because some conflicts arise with the eviction hacks that are superseded by #6591 and reverted there. We can land in any order, but I'd like to avoid repeated rebasing and follow-up changes.

@kim

kim commented Nov 19, 2026

Copy link
Copy Markdown
Contributor Author

I also really don't know why rustfmt decided to format some things differently.

@kim kim mentioned this pull request Nov 20, 2026
@kim
kim force-pushed the kim/snapshots-v1 branch 2 times, most recently from 293c995 to 4714352 Compare November 26, 2026 11:51
@kim
kim force-pushed the kim/reclamation-queue branch from 5c7644e to 0bf8fb8 Compare November 26, 2026 11:55
@kim
kim force-pushed the kim/snapshots-v1 branch from 4714352 to c7c99ba Compare November 26, 2026 13:14
@kim
kim force-pushed the kim/reclamation-queue branch from 0bf8fb8 to bc63484 Compare November 26, 2026 14:12
@kim
kim force-pushed the kim/snapshots-v1 branch from c7c99ba to 2b81dfe Compare November 26, 2026 14:12
Introduces a new snapshot version 1. The manifest format is not changed,
but the storage layout separates pages and blobs, like the tiered disk
storage.

To support this, code needed to be moved around quite significantly,
such that the manifest is always read before selecting the storage
layout.
@kim
kim force-pushed the kim/reclamation-queue branch from bc63484 to cdef84b Compare November 26, 2026 14:22
@kim
kim force-pushed the kim/snapshots-v1 branch from 2b81dfe to e1f4f0c Compare November 26, 2026 14:22

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant